﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;

namespace Utilities
{
    public class DropboxUtil
    {
        public static void createNewDropboxItem(DataTable dtSource, string strExpectedDropboxItemName)
        {
            DataTableUtil.saveDataTable2File(dtSource, strExpectedDropboxItemName);
        }

        public static DataTable loadAllDropboxItems2DataTable(string strFolderDropboxItemsSource)
        {
            return FolderUtil.buildDataTableOfFilesInFolder(strFolderDropboxItemsSource);
        }

        public static DataTable loadDropboxItemContent2DataTable(string strDropboxItemFilePath)
        {
            return DataTableUtil.buildDataTableFromFile(strDropboxItemFilePath);
        }
    }
}
